
<ion-modal-view>
    <ion-header-bar class="address">
        <div class="buttons" ng-click="check_address_close()">
            <i class="ion-ios-arrow-back"></i>
        </div>
        <h1 class="title">选择收货地址</h1>
        <div class="buttons add-address" ng-click="add_address()">
            新增
        </div>
    </ion-header-bar>
    <ion-content class="address">
        <ion-list class="list">
            <ion-item class="item" ng-repeat="x in user_address" ng-click="check_address(x)">
                <div  ng-click="check_address();">

                    <div class="name">{{x.username}}   {{x.mobile}}</div>
                    <div class="address-info"><span ng-show="x.is_default">[默认地址]</span>{{x.province}} {{x.city}} {{x.area}} {{x.address}}</div>
                </div>
                <div class="checked" ng-show="default_address._id == x._id">
                    <i class="ion-ios-checkmark-empty"></i>
                </div>
                <ion-option-button class="button-assertive" ng-click="delete_address(x._id)">
                    删除
                </ion-option-button>
                <ion-option-button class="button-info" ng-click="edit_address(x)">
                    修改
                </ion-option-button>
                <ion-reorder-button class="ion-navicon" on-reorder="moveItem(item, $fromIndex, $toIndex)"></ion-reorder-button>
            </ion-item>
        </ion-list>
    </ion-content>
</ion-modal-view>